<?php if ( !defined('BASEPATH')) exit('No direct script access allowed');

class Arrear_summary extends CI_Controller {

	public function __construct(){
		parent::__construct();
		$this->load->model('wus');
		$this->load->model($this->session->userdata('formodel'));
		$this->load->library('variable');

	}
	public function index(){
	  $this->load->view('layouts/header',$this->variable->load_data($this->session->userdata('title')));
	  $this->load->view($this->session->userdata('formain'),array(
	  		'arrear_data'	=> $this->arrear_summary_model->get_arrears()
	  	));
	  $this->load->view('layouts/footer');
	 }

	 public function get_pend(){

		$sure2 = $this->arrear_summary_model->get_names($_GET['id'],$_GET['zone']);
		$sure1 = $this->arrear_summary_model->get_pnd($_GET['id'],$_GET['zone']);

		$this->load->view($this->session->userdata('foradd'),array(

			'title' => 'Arrear List in '.$_GET['zone'].' ',

			'names'	=> $sure2,
			'dates'	=> $sure1

			));

		//echo json_encode($this->billprogress_model->get_pnd($_GET['date'],$_GET['zone']));

		//var_dump($this->billprogress_model->get_pnd($_GET['date'],$_GET['zone']));

	}



	

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */